package com.gome.ocean.service.gddl;

import java.util.List;
import java.util.Map;

import com.gome.ocean.dao.model.gddl.GroupBO;
import com.gome.ocean.dao.model.gddl.GroupRuleBO;

public interface GroupRuleService {

    public boolean insertGroupRuleBO(GroupRuleBO groupRuleBO);

    public boolean removeGroupRuleBOById(Long id);

    public boolean updateGroupRuleBOById(GroupRuleBO groupRuleBO);

    public GroupRuleBO findGroupRuleBOById(Long id);

    public GroupRuleBO findGroupRuleBOByIdAndName(Long groupId, String groupRuleName);

    public List<GroupRuleBO> findGroupRuleBOByGroupId(Long groupId);

    public boolean switchBackUpDb(GroupBO groupBO, List<GroupRuleBO> groupRuleBOs);

    public GroupRuleBO findGroupRuleBOByName(String groupRuleName);

    List<GroupRuleBO> getGroupRuleInfoByMap(Map<String, Object> map);
}
